﻿using Sharp.Domain.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace Sharp.Domain.PlatformBoundedContext.UserModule.Aggregates
{
    /// <summary>
    /// 重置密码清单
    /// </summary>
    public class ResetPassword : IAggregateRoot<int>
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }
        /// <summary>
        /// 电邮
        /// </summary>
        public string EMail { get; set; }
        /// <summary>
        /// 防伪标识
        /// </summary>
        [Index]
        public string Token { get; set; }
        /// <summary>
        /// 有效时间
        /// </summary>
        [Index]
        public DateTime EffectiveTime { get; set; }
    }
}
